package cn.tedu.submarine;

import javax.swing.*;

public class TySub extends SeaObject implements EnemyScore{
    public TySub(){
        super(73,18);
    }
    public void move(){
        x+=speed;
    }
    public ImageIcon getImage(){
        return Images.tysub;
    }
    public Tor shootTor(){
        //x:水雷潜艇的x+水雷潜艇的宽
        //y:水雷潜艇的y-11

        return new Tor(this.x+this.width,this.y-18);
    }
    public int getScore(){
        return 40;
    }
}
